<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Blog Page</title>
    <link rel="stylesheet" href="reqstyle.css" type="text/css" media="screen" />
    
</head>

<body>
<div id="art-page-background-glare-wrapper">
    <div id="art-page-background-glare"></div>
</div>
 
    
<div id="art-main">
    <%
    String courseid=request.getParameter("courseid");
    %>
    <div style="margin-bottom: 30px;font-size: 20px">
        <div style="position: fixed;top:0px;right:500px;font-weight: bolder">total required:  <span id="total"><%=helper.course.getCourseBean(courseid).getNoofFaculty()%></span></div>
    <div style="position: fixed;top:0px;right:200px;font-weight: bolder">present added:  <span id="present"><%=helper.course.getNoofFacultyAdded(courseid)%></span></div>
    </div>
    <script>
        var total=parseInt(document.getElementById("total").innerText);
        var present=parseInt(document.getElementById("present").innerText);
        if(total==present)
            alert("maximum faculty added");
    </script>
    <%String addedids[]=helper.course.getFaculty(courseid, true);
    for(int i=0;i<addedids.length;i++)
            {
    AO.Faculty facbean=helper.Login.getFacultyBean(addedids[i]);
    %>
<div class="cleared reset-box"></div>
<div class="art-box art-sheet"><div class="art-box-body art-sheet-body"><div class="art-layout-wrapper">
<div class="art-content-layout"><div class="art-content-layout-row"><div class="art-layout-cell art-sidebar1">
<div class="art-box art-vmenublock">
      
    <img src="./view/showimg?userid=<%=facbean.getUserid()%>&type=faculty" style="max-height: 150px;max-width: 150px"/>
</div>
           
                        </div>
<div class="art-layout-cell art-content">
<div class="art-box art-post">
<div class="art-box-body art-post-body">
<div class="art-post-inner art-article">
                                <h2 class="art-postheader"><%=facbean.getUserid()%>
                                </h2>
                                first name:  <%=facbean.getFname()%> <br />
                                last name:  <%=facbean.getLname()%> <br />
                                experience:  <%=facbean.getExperiance()%> <br />
                                per class:  <%=facbean.getSalary()%> Rs<br />
                                Qualification:  <%=facbean.getQualification()%> <br />
                                in courses: <br />
                                <a href="addorremove?courseid=<%=courseid%>&userid=<%=facbean.getUserid()%>&action=remove">remove</a>
</div></div></div></div></div></div></div></div></div><%}%>
<span style="font-size: 20px;margin-left: 14%;" >Available Faculty:</span>
<%
    courseid=request.getParameter("courseid");
    addedids=helper.course.getFaculty(courseid, false);
    for(int i=0;i<addedids.length;i++)
            {
    AO.Faculty facbean=helper.Login.getFacultyBean(addedids[i]);
    %>
<div class="cleared reset-box"></div>
<div class="art-box art-sheet"><div class="art-box-body art-sheet-body"><div class="art-layout-wrapper">
<div class="art-content-layout"><div class="art-content-layout-row"><div class="art-layout-cell art-sidebar1">
<div class="art-box art-vmenublock">
      
    <img src="./view/showimg?userid=<%=facbean.getUserid()%>&type=faculty" style="max-height: 150px;max-width: 150px"/>
</div>
           
                        </div>
<div class="art-layout-cell art-content">
<div class="art-box art-post">
<div class="art-box-body art-post-body">
<div class="art-post-inner art-article">
                                <h2 class="art-postheader"><%=facbean.getUserid()%>
                                </h2>
                                first name:  <%=facbean.getFname()%> <br />
                                last name:  <%=facbean.getLname()%> <br />
                                experience:  <%=facbean.getExperiance()%> <br />
                                per class:  <%=facbean.getSalary()%> Rs<br />
                                Qualification:  <%=facbean.getQualification()%> <br />
                                in courses:  <br />
                                <a href="addorremove?courseid=<%=courseid%>&userid=<%=facbean.getUserid()%>&action=add">add</a>
</div></div></div></div></div></div></div></div></div><%}%>

</div>

</body>
</html>
